import { createApp } from "vue";
import App from "./App.vue";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import router from "@/router";
import axios from "axios";
import { setupI18n } from "@/plugins/i18n";

const pinia = createPinia();
const app = createApp(App);

pinia.use(piniaPluginPersistedstate);

axios.defaults.baseURL = "/api";

setupI18n(app);

app.use(pinia);
app.use(router);
app.mount("#app");
